<!DOCTYPE html>
<html lang="zh-CN">
<head>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>工单列表</title>
    <meta charset="utf-8">
    <script type="text/javascript">
        document.write('<scri' + 'pt src="./js/init_ticket.js?v=' + Math.random() + '" charset="utf-8" type="text/javascript"></s' + 'cript>');
    </script>
    <script charset="utf-8" type="text/javascript"
            src="js/qui_0.4.0/jquery.ui.autocomplete.js?v=2014122229711"></script>
    <script charset="utf-8" type="text/javascript"
            src="js/qui_0.4.0/jquery.qui.autocomplete.js?v=2014122229711"></script>
    <script charset="utf-8" type="text/javascript" src="js/qui_0.4.0/jquery.qui.suggest.js?v=2014122229711"></script>
</head>
</head>
<style>
    div.row {
        margin: 0;
    }

    div.row div div ul li {
        width: 180px;
        height: 25px;
    }

    div.row div div ul li span {
        width: 120px;
        display: inline-block;
        font-size: larger;
        cursor: pointer;
    }

    div.row div div ul li span.selected {
        width: 120px;
        display: inline-block;
        font-size: larger;
        cursor: pointer;
        color: #000000;
        font-weight: bold;
    }

    div.row div div ul li label {
        display: inline-block;
        width: 30px;
        font-weight: bold;
        color: #ffffff;
        text-align: center;
        background-color: powderblue;
        display: none;
    }

    .emailSuggestDiv .ui-suggest .ui-autocomplete {
        width: 240px !important;
    }

    .norecords {
        border-width: 2px !important;
        display: none;
        font-weight: bold;
        left: 45%;
        margin: 5px;
        padding: 6px;
        text-align: center;
        top: 45%;
        width: auto;
        z-index: 102;
    }

    .ui-jqgrid tr.jqgrow td {
        white-space: normal !important;
        word-wrap: break-word;
        height: auto;
        vertical-align: text-top;
        padding-top: 2px;
        outline-style: none;
        border-bottom: 1px dotted #c7c7c7;
    }

</style>
<body>
<header></header>
<div class="wrapper wrapper-video">
    <nav>
        <ul class="breadcrumb">
            <li>工单<span class="divider"> &gt; </span></li>
            <li>列表</li>
        </ul>
    </nav>
    <div class="container container-video">
        <div class="container-list" id="ChannelListContainer">
            <div class="query" id="QueryContainer">
                <form class="form-horizontal form-container form-inline" name="basicFrm" autocomplete="off">
                    <div class="container">
                        <div class="row">
                            <div class="span3">
                                <div class="control-group">
                                    <label class="control-label">oa单号：</label>
                                    <div class="controls">
                                        <input type="text" name="LIKES_oaDocNo" autocomplete="off"
                                               class="input-small query-input-text">
                                    </div>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    <label class="control-label">主题：</label>
                                    <div class="controls">
                                        <input type="text" name="LIKES_title" autocomplete="off"
                                               class="input-small query-input-text">
                                    </div>
                                </div>
                            </div>
                            <div class="span6">
                                <div class="control-group">
                                    <label class="control-label">剩余时间：</label>
                                    <div class="controls">
                                        <select name="deadline" class="input-small pps-content-type" decodemode="function"
                                                autocomplete="off">
                                            <option value="">请选择</option>
                                            <option value="LTS_deadline=now()">已过期</option>
                                            <option value="GES_deadline=now();LES_deadline=func(addhour,now(),12)" selected>0~12小时</option>
                                            <option value="GES_deadline=now();LES_deadline=func(addhour,now(),24)" >0~24小时</option>
                                            <option value="GTS_deadline=func(addhour,now(),24)">大于24小时</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="span3">
                                <div class="control-group cleargroup">
                                    <label class="control-label">状态：</label>

                                    <div class="controls">
                                        <select name="EQI_status" class="input-small pps-content-type"
                                                autocomplete="off">
                                            <option value="">全部</option>
                                            <option value="1">已处理</option>
                                            <option value="0" selected>待处理</option>
                                            <option value="999">终止</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group cleargroup">
                                    <label class="control-label"
                                            >项目类型：</label>
                                    <div class="controls">
                                        <select name="EQI_dataType" class="input-small pps-content-type"
                                                autocomplete="off">
                                            <option value="">请选择</option>
                                            <option query-sql="EQI_dataType" query-value="1" value="1">直播工单</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="span3">
                                <div class="control-group cleargroup ">
                                    <label class="control-label"
                                            >发起人：</label>
                                    <div class="controls emailSuggestDiv">
                                        <input type="text" name="EQS_reporter" autocomplete="off"
                                               class="input-small query-input-text">
                                    </div>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group cleargroup ">
                                    <label class="control-label"
                                            >执行人：</label>

                                    <div class="controls emailSuggestDiv">
                                        <input type="text" name="EQS_executor" autocomplete="off"
                                               class="input-small query-input-text">
                                    </div>
                                </div>
                            </div>
                         </div>

                        <div class="control-group">
                            <label class="control-label"></label>

                            <div class="controls">
                                <button type="button" name="queryBtn" class="btn btn-primary query-btn">搜索</button>
                                <button type="reset" name="resetFrm" class="btn">重置</button>
                                <div name="in_dev_div" style="display: none">
                                    <button type="button" quick="true" query-sql="EQS_reporter" query-value="currentUser()"
                                            class="btn">由我报告的
                                    </button>
                                    <button type="button" quick="true" query-sql="EQS_executor,EQI_status"
                                            query-value="currentUser(),0" class="btn">待我处理
                                    </button>
                                    <button type="button" quick="true" query-sql="EQS_executor,EQI_status"
                                            query-value="currentUser(),1" class="btn">我已处理
                                    </button>
                                    <button type="button" quick="true" query-sql="EQI_status" query-value="1" class="btn">
                                        所有处理
                                    </button>
                                    <button type="button" query-sql="EQS_reporter_OR_executor"
                                            query-value="currentUser()" class="btn">与我相关
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="result">
                <div>
                    <table id="listGrid">
                        <tr>
                            <td></td>
                        </tr>
                    </table>
                    <div id="pager"></div>
                </div>
            </div>
        </div>
    </div>
</div>


<div id="createDiv" class="form-inline" style="display: none">
    <form role="ticketForm" id="ticketForm" class="form-horizontal">
        <div class="control-group">
            <label class="col-xs-2 control-label my-label-width"
                    >节目奇谱ID：</label><input type="text" name="programQipuId" id="programQipuId"
                                           placeholder="填写节目奇谱ID">
        </div>
        <div id="liveEpisodeDiv" style="display: none;height: 600px">
            <div class="control-group"><label class="col-xs-2 control-label my-label-width"
                    >节目名称：&nbsp;</label><span class="radio inline" name="pname"></span>
            </div>
            <div class="control-group">
                <label class="col-xs-2 control-label my-label-width"
                        >开始时间：</label><span class="radio inline" name="time_range"></span>
            </div>
            <div class="control-group"><label class="col-xs-2 control-label my-label-width"
                    >付费状态：</label><span class="radio inline" name="boss_status"></span></div>
            <div id="episodeGradeDiv" class="control-group">
                <label class="col-xs-2 control-label my-label-width">节目等级：</label>
                <span class="radio inline" name="episodeGrade"></span>
            </div>
            <div class="control-group">
                <label class="col-xs-2 control-label my-label-width"
                        >执行人：</label><input type="text" style="width:120px;" name="user">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <button name="ticket-add" type="button">添加</button>
            <!--<button name="ticket-edit" type="button" style="display: none"  >修改</button>-->
            <button name="ticket-clear-form" type="button">重置</button>
            <!--<button name="ticket-list" type="button" style="display: none">刷新</button>-->
            <!--<button name="ticket-clear-list" type="button" style="display: none">清空列表</button>-->
        </div>
    </form>
    <div></div>
</div>
<div id="ticketLogDiv" style="display: none">
    <table id="logList">
        <tr>
            <td></td>
        </tr>
    </table>
    <div id="log_pager"></div>
</div>
<div id="workerDiv" style="display: none" align="enter">
    <input type="hidden" name="assign_ticket_id" >
    <form class="form-horizontal">
        <div class="control-group" style="height: 200px">
            <label class="col-xs-2 control-label">执行人：</label>
            <select name="assign_worker"></select>
        </div>
    </form>
    <div class="controls" style="text-align: right;padding-top: 20px">
        <button type="button" name="worker-dlg-cancel" class="btn">取消</button>
        <button type="button" name="worker-dlg-ok" class="btn btn-primary query-btn">确定</button>
    </div>
</div>

<div id="dlg_checkList" class="form-inline" style="display: none">
    <form role="form_checkList" id="form_checkList" class="form-horizontal">
        <div class="control-group">
            <label class="control-label">频道基础信息：</label>
            <label class="radio inline"><input type="radio"
                                               name="cBase" group="1"
                                               value="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="cBase" group="1" value="0">出现问题</label>
        </div>
        <div class="control-group">
            <label class="control-label">节目基础信息：</label>
            <label class="radio inline"><input type="radio"
                                               name="pBase"
                                               value="1" group="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="pBase" group="1" value="0">出现问题</label>
        </div>

        <div class="control-group">
            <label class="control-label">频道播控信息：</label>
            <label class="radio inline"><input type="radio"
                                               name="c_b"
                                               value="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="c_b" group="1" value="0">出现问题</label>
        </div>
        <div class="control-group">
            <label class="control-label">节目播控信息：</label>
            <label class="radio inline"><input type="radio"
                                               name="p_b"
                                               value="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="p_b" group="1" value="0">出现问题</label>
        </div>
        <div class="control-group">
            <label class="control-label">编码器信息：</label>
            <label class="radio inline"><input type="radio"
                                               name="coder"
                                               value="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="coder" group="2" value="0">出现问题</label>
        </div>
        <div class="control-group">
            <label class="control-label">流播放：</label>
            <label class="radio inline"><input type="radio"
                                               name="stream"
                                               value="1"
                    >正常</label><label class="radio inline"><input
                type="radio" name="stream" group="3" value="0">出现问题</label>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <button name="check-ok" type="button" onclick="Ticket.Util.checkSubmit()">确认</button>
            <button name="check-cancel" type="button" onclick="Ticket.Util.checkClosed()">关闭</button>
        </div>
    </form>

</div>
</body>
<script type="text/javascript">
    require(['ticket'], function () {
        Ancestor.Auth.getAuthData({url:"/epg/channel.html"}, function (rdata) {
            console.log("callback" + rdata)
            //$("header div.logo").html("");
            Ticket.Action.gridRun();
        })
    })
</script>
</html>